package br.com.wagnerfull.precoimovel;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

@Deprecated
public class ListaParametroCalculoActivity extends ListActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Intent intent = getIntent();
		if (intent != null && intent.getExtras() != null
				&& intent.getExtras().size() > 0) {
			Bundle parametros = (Bundle) intent.getExtras().get("parametros");
			if (parametros != null) {
				String[] arrayMenuHelp = parametros
						.getStringArray("listaParamCalculo");
				if (arrayMenuHelp != null && arrayMenuHelp.length > 0) {
					setListAdapter(new ArrayAdapter<String>(this,
							android.R.layout.simple_list_item_1, arrayMenuHelp));
				}
			}

		}

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(
				android.R.layout.simple_list_item_1, menu);
		return true;
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		ListAdapter list = getListAdapter();
		Object selecionado = list.getItem(position);
		if (selecionado instanceof String) {

		}
	}

}
